home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15384 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. From: RMarlowe@msn.com (Roger Marlowe)
  2. Subject: Space Problem?
  3. Date: 5 Apr 96 03:20:49 -0800
  4. Message-ID: <00001a81+0000b147@msn.com>
  5. Path: news.msn.com!msn.com
  6. Newsgroups: comp.lang.c++
  7. Organization: The Microsoft Network (msn.com)
  8.  
  9.   I have an AVL tree program which successfully builds a tree of 20 
  10. nodes, 100 nodes or 1000 nodes.  When I try with 10000 nodes, MSVC 4 
  11. gives an 'Unhandled exception' error on the approx. 5000th node.
  12.  
  13.   It appears to have miscalculated the positions of some pointers...
  14.  
  15.   The program runs without a hitch on the mainframe at my school so I 
  16. assume that my PC at home has run out of space somewhere.
  17.   
  18.   My PC is running Win 95 and has 16M of ram and about 20M free on 
  19. the hard drive, it seems like this should be enough room (the nodes 
  20. are small) if MSVC can use it.
  21.  
  22.   I'd like to know how MSVC 4.0 handles it's memory in this case:
  23.  
  24.   Am I constrained to a small, preallotted heap size or can MSVC use 
  25. ALL the available memory space and will MSVC use the hard drive as 
  26. virtual memory,as well?
  27.  
  28.  
  29.                             Thanks for your help...
  30.  
  31.                             Roger Marlowe
  32.